package com.whf.android.jar.constants;

import androidx.annotation.StringDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * 保存用户信息
 *
 * @author qf
 * @version 2021-04-23
 */
public final class UserConstant {

    /**
     * 保存用户token
     */
    public static final String COOKIE = "Cookie";

    /**
     * 保存用户token
     */
    public static final String TOKEN = "accessToken";

    /**
     * 保存用户token
     */
    public static final String AUTHORIZATION = "Authorization";

    /**
     * 是否保存用户
     */
    public static final String USER_IS = "userIS";

    /**
     * 保存用户id
     */
    public static final String USER_ID = "userId";

    /**
     * 保存用户名
     */
    public static final String USER_USER = "userUser";

    /**
     * 用户姓名
     */
    public static final String USER_NAME = "userName";

    /**
     * 用户呢称
     */
    public static final String USER_NICKNAME = "userNickname";

    /**
     * 保存密码
     */
    public static final String USER_PASS = "userPass";

    /**
     * 保存用户头像网址
     */
    public static final String HEAD_PIC = "headPic";

    /**
     * 保存类型
     */
    public static final String USER_TYPE = "userType";

    /**
     * 保存用户电话
     */
    public static final String USER_PHONE = "userPhone";

    /**
     * 用户性别
     */
    public static final String USER_SEX = "userSex";

    /**
     * 用户生日(出生年月)
     */
    public static final String USER_BIRTHDAY = "userBirthday";

    /**
     * 用户电子邮箱
     */
    public static final String USER_MAILBOX = "userMailbox";

    /**
     * 用户身份证号
     */
    public static final String USER_ID_CARD = "userIdCard";

    /**
     * 用户个签
     */
    public static final String USER_GEQIAN = "userGeqian";


    @StringDef({COOKIE, TOKEN, AUTHORIZATION, USER_IS, USER_ID,
            USER_USER, USER_NICKNAME, USER_NAME, USER_PASS,
            HEAD_PIC, USER_TYPE, USER_PHONE, USER_SEX,
            USER_BIRTHDAY, USER_MAILBOX, USER_ID_CARD, USER_GEQIAN})
    @Retention(RetentionPolicy.SOURCE)
    public @interface User {
    }

}